﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataTransferObjects
{
    public class AccountAndKeyDTO
    {
        public int iUserID;//chứa id người dùng hiện tại
        public string strName;
        public DateTime birthday;
        public string phoneNumber;
        public string address;
        public string email;

        public int keyLength;
        public string passPhrase;
        public string saltValue;
        public byte[] hashValue;
        public byte[] rsaExponent;
        public byte[] rsaModulus;
        public byte[] rsaD;

        public AccountAndKeyDTO(){}

        public AccountAndKeyDTO(AccountInforDTO accountInfor, KeyInforDTO keyInfor) 
        {
            this.iUserID = accountInfor.iUserID;

            this.strName = accountInfor.strName;
            this.birthday = accountInfor.birthday;
            this.phoneNumber = accountInfor.phoneNumber;
            this.address = accountInfor.address;
            this.email = accountInfor.email;

            this.keyLength = keyInfor.keyLength;
            this.passPhrase = keyInfor.passPhrase;
            this.saltValue = keyInfor.saltValue;
            this.hashValue = keyInfor.hashValue;
            this.rsaExponent = keyInfor.rsaExponent;
            this.rsaModulus = keyInfor.rsaModulus;
            this.rsaD = keyInfor.rsaD;
        }
    }
}
